<ion-view hide-back-button="true" title="个人资料">
  <ion-nav-buttons side="left">
    <button class="button button-clear" ng-click="back()" ui-sref="dash.mine">
      <i class="icon ion-chevron-left"></i>
    </button>
  </ion-nav-buttons>
  <ion-content>
    <div class="list perinfo">
      <div class="item" ng-click="changeHead()">
        <span style="float: left">头像</span>
        <span style="float: right">
          <img src="img/hd/pic_touxiang.png" alt="" ng-if="!user.headimg">
          <img ng-src="{{user.headimg}}" alt="" ng-if="user.headimg" style="border-radius: 30px; width: 60px; height: 60px">
        </span>
      </div>
      <div class="item item-icon-right" ui-sref="mine.password">
        修改密码
        <i class="icon ion-chevron-right" style="color: #eee; font-size: 20px;"></i>
      </div>
      <div class="item item-icon-right" ui-sref="mine.name">
        <span ng-if="!user.name">设置昵称</span >
        <span ng-if="user.name">{{user.name}}</span >
        <i class="icon ion-chevron-right" style="color: #eee; font-size: 20px;"></i>
      </div>
      <div class="item item-icon-right" ng-click="logout()">
        注销登录
        <i class="icon ion-chevron-right" style="color: #eee; font-size: 20px;"></i>
      </div>
    </div>
  </ion-content>
</ion-view>
